package com.foldingleaf.collections.service.impl;

import java.util.List;

import com.foldingleaf.show.domain.SysCollection;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.foldingleaf.collections.mapper.SysCollectionMapper;

import com.foldingleaf.collections.service.ISysCollectionService;

/**
 * 藏品详情Service业务层处理
 * 
 * @author ajian
 * @date 2022-06-04
 */
@Service
public class SysCollectionServiceImpl implements ISysCollectionService 
{
    @Autowired
    private SysCollectionMapper sysCollectionMapper;

    /**
     * 查询藏品详情
     * 
     * @param collectionId 藏品详情主键
     * @return 藏品详情
     */
    @Override
    public SysCollection selectSysCollectionByCollectionId(Long collectionId)
    {
        return sysCollectionMapper.selectSysCollectionByCollectionId(collectionId);
    }

    /**
     * 查询藏品详情列表
     * 
     * @param sysCollection 藏品详情
     * @return 藏品详情
     */
    @Override
    public List<SysCollection> selectSysCollectionList(SysCollection sysCollection)
    {
        return sysCollectionMapper.selectSysCollectionList(sysCollection);
    }

    /**
     * 新增藏品详情
     * 
     * @param sysCollection 藏品详情
     * @return 结果
     */
    @Override
    public int insertSysCollection(SysCollection sysCollection)
    {
        return sysCollectionMapper.insertSysCollection(sysCollection);
    }

    /**
     * 修改藏品详情
     * 
     * @param sysCollection 藏品详情
     * @return 结果
     */
    @Override
    public int updateSysCollection(SysCollection sysCollection)
    {
        return sysCollectionMapper.updateSysCollection(sysCollection);
    }

    /**
     * 批量删除藏品详情
     * 
     * @param collectionIds 需要删除的藏品详情主键
     * @return 结果
     */
    @Override
    public int deleteSysCollectionByCollectionIds(Long[] collectionIds)
    {
        return sysCollectionMapper.deleteSysCollectionByCollectionIds(collectionIds);
    }

    /**
     * 删除藏品详情信息
     * 
     * @param collectionId 藏品详情主键
     * @return 结果
     */
    @Override
    public int deleteSysCollectionByCollectionId(Long collectionId)
    {
        return sysCollectionMapper.deleteSysCollectionByCollectionId(collectionId);
    }
}
